package com.dimples.dd.system.model.query;

import cn.hutool.core.date.DatePattern;
import com.dimples.dd.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 通知公告分页查询对象
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/12/29
 */
@Schema(description = "通知公告查询对象")
@EqualsAndHashCode(callSuper = false)
@Data
public class NoticePageQuery extends PageParam {

    @Schema(description = "通知标题")
    private String title;

    @Schema(description = "发布状态(0-未发布 1已发布 -1已撤回)")
    private Integer publishStatus;

    @Schema(description = "发布时间(起止)")
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private List<LocalDateTime> publishTime;

    @Schema(description = "查询人ID")
    private Long userId;

    @Schema(description = "是否已读（0-未读 1-已读）")
    private Integer isRead;

}
